package com.sp.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sp.common.annotation.Excel;
import com.sp.common.core.domain.BaseEntity;

/**
 * 停车位对象 sys_parking_spot
 *
 *
 * @date 2024-11-24
 */
public class SysParkingSpot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 停车位ID */
    private Long id;

    /** 停车位名称 */
    @Excel(name = "停车位名称")
    private String spotName;

    /** 停车位当前状态（0-空闲，1-占用） */
    @Excel(name = "停车位当前状态", readConverterExp = "0=-空闲，1-占用")
    private Integer currentStatus;

    /** 删除标志（0正常，1删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSpotName(String spotName)
    {
        this.spotName = spotName;
    }

    public String getSpotName()
    {
        return spotName;
    }
    public void setCurrentStatus(Integer currentStatus)
    {
        this.currentStatus = currentStatus;
    }

    public Integer getCurrentStatus()
    {
        return currentStatus;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spotName", getSpotName())
            .append("currentStatus", getCurrentStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
